<div class="myRight">
    <div class="headTop"><span class="t">用户注册</span></div>
    <form id="mainForm" method="get" action="./register.html">
        <div class="mainWrap clearfix">
            <div class="mb10">请选择要注册的类型</div>
            <label class="box dtype_1 active" for="dtype_radio_2">
                <p class="tit">我需要租场地，选择：</p>
                <input checked type="radio" name="dtype" id="dtype_radio_2" value="2"/>
                <span class="t">租户</span>
            </label>
            <label class="box dtype_1" for="dtype_radio_1">
                <p class="tit">我有资源和渠道，选择：</p>
                <input type="radio" name="dtype" id="dtype_radio_1" value="1"/>
                <span class="t">业主</span>
            </label>
            <label class="box dtype_1" for="dtype_radio_5">
                <p class="tit">我是物业，选择：</p>
                <input type="radio" name="dtype" id="dtype_radio_5" value="5"/>
                <span class="t">物业</span>
            </label>
            <label class="box dtype_0" for="dtype_radio_3">
                <p class="tit">我是托管公司，选择：</p>
                <input type="radio" name="dtype" id="dtype_radio_3" value="3"/>
                <span class="t">托管公司</span>
            </label>
        </div>
        <button type="submit" id="nextBtn" class="nextBtn" href="javascript:void(0)">下一步</button>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        $("#mainForm").on("click",".box",function(e){
            var tarBox = $(e.currentTarget);
            tarBox.addClass("active").siblings().removeClass("active");
        })
    })
</script>
